import request from '@/utils/request'

// 查询噪声排放列表
export function listNoise(query) {
  return request({
    url: '/pollutant/noise/list',
    method: 'get',
    params: query
  })
}

// 查询噪声排放详细
export function getNoise(noId) {
  return request({
    url: '/pollutant/noise/' + noId,
    method: 'get'
  })
}

// 新增噪声排放
export function addNoise(data) {
  return request({
    url: '/pollutant/noise',
    method: 'post',
    data: data
  })
}

// 修改噪声排放
export function updateNoise(data) {
  return request({
    url: '/pollutant/noise',
    method: 'put',
    data: data
  })
}

// 删除噪声排放
export function delNoise(noId) {
  return request({
    url: '/pollutant/noise/' + noId,
    method: 'delete'
  })
}

// 导出噪声排放
export function exportNoise(query) {
  return request({
    url: '/pollutant/noise/export',
    method: 'get',
    params: query
  })
}